From: Andreas Schwab Date: Thu, 25 Dec 2003 11:05:57 +0000 (+0000) Subject: (jka-compr-insert-file-contents): Avoid error when X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24767 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9c01d6937eca84914be5d7d71178cfc7b1632a0f;p=emacs.git (jka-compr-insert-file-contents): Avoid error when file not found. --- diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index dd56c9c0f31..aae0f0f85c1 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el @@ -590,10 +590,11 @@ There should be no more than seven characters after the final `/'." (file-exists-p local-copy) (delete-file local-copy))) - (decode-coding-inserted-region - (point) (+ (point) size) - (jka-compr-byte-compiler-base-file-name file) - visit beg end replace) + (unless notfound + (decode-coding-inserted-region + (point) (+ (point) size) + (jka-compr-byte-compiler-base-file-name file) + visit beg end replace)) (and visit